﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Answer.aspx.cs" Inherits="ThangNM.Answer" MasterPageFile="~/PublicInterface/Home_New.Master" %>
<%@ Register src="~/UserControl/QuestionAnswer_DetailUC.ascx" tagname="QuestionAnswer_DetailUC" tagprefix="uc1" %>
<%@ Register src="~/UserControl/AdsMainUC.ascx" tagname="AdsMainUC" tagprefix="uc2" %>
<%@ Register src="~/UserControl/Vote_Share_CommentUC.ascx" tagname="Vote_Share_CommentUC" tagprefix="uc11" %>

<asp:Content ID="cBody" ContentPlaceHolderID="cphBody" runat="server"><br />
    <div class="row">
        <div class="col-md-10">
            <h2 class="font_18_ex"><a href="http://nguyenmanhthang.net/hoi-dap" title="Hỏi - Đáp" >Hỏi - Đáp</a></h2>
            <h6 class="font_14">Hỏi những thứ bạn chưa biết. Chia sẻ giúp đỡ những điều bạn đã biết. Để một thế giới tốt đẹp hơn</h6>
        </div>
        <div class="col-md-2">
            <a class="btn btn-info a_style" href="http://nguyenmanhthang.net/gui-cau-hoi.html" >Gửi câu hỏi</a>
        </div>
    </div>
    <div class="row" style="margin:auto;">
        <ol class="breadcrumb breadcrumb_style" itemscope itemtype="http://schema.org/BreadcrumbList">
            <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                <a href="http://nguyenmanhthang.net" itemprop="item"><i class="fa fa-home"></i><span itemprop="name">Trang chủ</span></a>
                <meta itemprop="position" content="1" />
            </li>
            <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                <a href="http://nguyenmanhthang.net/hoi-dap" itemprop="item"><span itemprop="name">Hỏi - Đáp</span></a>
                <meta itemprop="position" content="2" />
            </li>
            <li class="active">
                <asp:Literal id="lblsTitle1" runat="server" EnableViewState="false"></asp:Literal>
            </li>
        </ol>
    </div>
    <div class="panel panel-info">
        <div class="panel-heading">
            <div class="row title_style">
                <h1 class="font_16_ex"><asp:Literal ID="lblsTitle" runat="server" EnableViewState="false"></asp:Literal></h1>
                <asp:HiddenField ID="hfPK_iQuestionID" runat="server" EnableViewState="false" />
            </div>
            <div class="row info_footer">
                <div class="col-md-6">
                    <i class="fa fa-clock-o"></i> <span><asp:Literal ID="lbltDateTimeCreate" runat="server" EnableViewState="false"></asp:Literal></span>&nbsp;&nbsp;&nbsp;
                    <asp:HyperLink ID="hplFK_iAccountID" runat="server" Target="_blank" rel="nofollow" EnableViewState="false"><i class="fa fa-user"></i><span> <asp:Literal ID="lblFK_iAccountID" runat="server" EnableViewState="false"></asp:Literal></span></asp:HyperLink>
                </div>
                <div class="col-md-6">
                    <i class="fa fa-eye"></i> <span><asp:Literal ID="lbliVisit" runat="server" EnableViewState="false"></asp:Literal> Lượt xem</span>&nbsp;&nbsp;&nbsp;
                    <i class="fa fa-heart"></i> <span><asp:Literal ID="lbliLike" runat="server" EnableViewState="false"></asp:Literal> Lượt thích</span>&nbsp;&nbsp;&nbsp;
                    <a href="#comment" rel="nofollow"><i class="fa fa-comment"></i><span> <asp:Literal ID="lbliComment" runat="server" EnableViewState="false"></asp:Literal>  Bình luận</span></a>
                </div>
            </div>
        </div>
        <div class="panel-body text_default">
            <asp:Label ID="lblsContent" runat="server" CssClass="font_14" EnableViewState="false"></asp:Label><br /><br />
            <uc2:AdsMainUC ID="AdsMainUC1" runat="server" EnableViewState="false" />
        </div>
        <div class="panel-footer">
        <asp:Repeater ID="rptComment" runat="server" EnableViewState="true">
                <ItemTemplate>
                    <div class="row comment_style">
                        <div class="col-md-3 text_default">
                            <i class="fa fa-heart"></i><span> <%# Eval("iLike")%> Lượt thích</span><br />
                            <a href ="<%# "mailto:" +  Eval("sEmail")%>" title="<%# Eval("sName")%>" target="_blank" ><i class="fa fa-user"></i> <span><%# Eval("sName")%></span></a><br />
                            <a href ="<%#Eval("sWebsite")%>" title="<%# Eval("sName")%>" target="_blank"><i class="fa fa-clock-o"></i> <span><%# Eval("sDateTimeCreate")%></span></a>
                        </div>
                        <div class="col-md-9 talkbubble">
                            <span class="text_default"><%# Eval("sContent")%></span>
                        </div>
                        <asp:HiddenField ID="hfID" runat="server" Value='<%# Eval("PK_iQuestionID")%>' EnableViewState="false" />
                    </div>
                </ItemTemplate>
                <FooterTemplate><hr class="hr_style" /><br /></FooterTemplate>
            </asp:Repeater>
            <asp:UpdatePanel ID="udpCmt" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Repeater ID="rptComment1" runat="server" EnableViewState="true">
                        <ItemTemplate>
                            <div class="row comment_style">
                                <div class="col-md-3 text_default">
                                    <i class="fa fa-heart"></i><span> <%# Eval("iLike")%> Lượt thích</span><br />
                                    <a href ="<%# "mailto:" +  Eval("sEmail")%>" title="<%# Eval("sName")%>" target="_blank" ><i class="fa fa-user"></i> <span><%# Eval("sName")%></span></a><br />
                                    <a href ="<%#Eval("sWebsite")%>" title="<%# Eval("sName")%>" target="_blank"><i class="fa fa-clock-o"></i> <span><%# Eval("sDateTimeCreate")%></span></a>
                                </div>
                                <div class="col-md-9 talkbubble">
                                    <span class="text_default"><%# Eval("sContent")%></span>
                                </div>
                                <asp:HiddenField ID="hfID" runat="server" Value='<%# Eval("PK_iQuestionID")%>' EnableViewState="false" />
                            </div>
                        </ItemTemplate>
                        <FooterTemplate><hr class="hr_style" /><br /></FooterTemplate>
                    </asp:Repeater>
                    <div id="comment">
                        <uc1:QuestionAnswer_DetailUC ID="QuestionAnswer_DetailUC1" runat="server" OnViewMessage="ViewMessageDetail_Click"/>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</asp:Content>